home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Files / Directories / AllocationBlock.h < prev    next >
Text File  |  2000-06-23  |  506b  |  27 lines

  1. // AllocationBlock.h
  2.  
  3. #ifndef AllocationBlock_h
  4. #define AllocationBlock_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class AllocationBlock
  11.   {
  12.     private:
  13.         uint32 block;        // wishful thinking or HFS+?
  14.     
  15.     public:
  16.         explicit AllocationBlock( uint32 value )
  17.           : block( value )
  18.           {}
  19.     
  20.         uint32 Block() const                                        { return block; }
  21.         
  22.         bool operator==( AllocationBlock f ) const        { return block == f.block; }
  23.         bool operator!=( AllocationBlock f ) const        { return block != f.block; }
  24.   };
  25.  
  26. #endif
  27.